﻿/* === SHARED ==================================================================

 Menu styles for the XSL parts of the site. 

============================================================================= */

#sitelang label {
    position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}

#menuHeader {
    position: relative;
    height: 40px;
    padding: 0px;
    -webkit-box-sizing: border-box; 
       -moz-box-sizing: border-box; 
            box-sizing: border-box;
    border-radius: 0px;
    border-bottom: 2px solid #F1901D;
    background: #3878C8;
    font: 12px/1.5 Arial, Helvetica, sans-serif;
    box-shadow: 0px 0px 4px rgba(0, 0, 0, .2);
}
#menuHeader  li,

#menuHeader ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#menuHeader a,
#menuHeader a:hover {
    display: block;
    color: #fff;
    text-decoration: none;
}

/* arrows */
#loginsignup a:after,
#user > li > a:before,
#menuHeader [aria-haspopup] > a:after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    position: absolute;
    left: 45%;
    bottom: 0;
    border: 4px solid transparent;
}
#user > li:hover > a:before,
#nav [aria-haspopup]:hover > a:after {
    border-bottom-color: #F1901D;
}


/* NAVIGATION */
#nav {
    margin: 0 0 0 0px;
}
#menuHeader li {
    
    position: relative;
}
#nav [aria-haspopup] {
    margin: 10px 5px 0;
    max-width: 300px;
}
#nav [aria-haspopup] > a {
    height: 10px;
    padding: 9px 15px;
    line-height: 10px;
}


#menuHeader [aria-haspopup] ul {
    position: absolute;
    opacity: 0;
    display: none;
    -webkit-transition: opacity 0.25s ease-out;
       -moz-transition: opacity 0.25s ease-out;
         -o-transition: opacity 0.25s ease-out;
            transition: opacity 0.25s ease-out;
    width: auto;
    overflow: hidden;
    font-size: 11px;
    border-top: 2px solid #F1901D; /* this is overlapping the border-bottom of the header */
}
#menuHeader [aria-haspopup] a:focus + ul,
#menuHeader [aria-haspopup] a:hover + ul,
#menuHeader [aria-haspopup]:hover ul {
    opacity: 1;
    display: block;
    z-index: 99999;
}
#menuHeader [aria-haspopup] li,
#menuHeader [aria-haspopup] li a,
#user [aria-label]:hover:after {
    background: #3878C8;
    color: #fff;
}
#menuHeader [aria-haspopup] li {
    float: none;
    clear: both;
}
#menuHeader [aria-haspopup] li a {
    padding: 4px 15px;
    line-height: 26px;
    border-bottom: 1px dotted #1096d5;
}
#menuHeader [aria-haspopup] li a:hover {
    background-color: #F1901D;
}
#menuHeader [aria-haspopup] li:last-child a {
    border-bottom: 0;
}



/* USERBAR */

#user > li {
    background-image: url(./images/line.gif);
    background-repeat: no-repeat;
    width: auto;
}
#user > li > a {
    display: block;
    width: 44px;
    height: 48px;
    position: relative;
}
#user .settings > a {
    width: 39px;
}
#user .friends > a {
    width: 42px;
}
#user {
    float: right;
}
#user .friends {
    background-position: 50% -364px;
}
#user .friends:hover {
    background-position: 50% -414px;
}
#user .news {
    background-position: 50% -62px;
}
#user .news:hover {
    background-position: 50% -112px;
}
#user .messages {
    background-position: 50% -162px;
}
#user .messages:hover {
    background-position: 50% -212px;
}
#user .settings {
    background-position: 50% -263px;
}
#user .settings:hover  {
    background-position: 50% -313px;
}
#user .new:before {
    content: '';
    width: 41px;
    height: 36px;
    position: absolute;
    background-image: url(./images/line.gif);
    background-repeat: no-repeat;
    background-position: 120% -457px;
}

/* icon tooltips */

#user [aria-label]:hover:after {
    position: absolute;
    top: 48px;
    width: 80px;
    left: -23px;
    text-align: center;
    content: attr(aria-label);
    display: block;
    padding: 3px 5px;
    font-size: 10px;
    z-index: 99999;
}

/* user settings dropdown */
#user [aria-haspopup].settings ul {
    right: -8px;
}
#user [aria-haspopup].messages ul {
    right: -47px;
}
#user [aria-haspopup] ul {
    top: 48px;
    width: 150px;
    text-align: left;
}


/* alt text/icon */
#user > li > a > img {
    font-size: 14px;
    line-height: 35px;
    position: absolute;
    top: 0;
    left: 0;
    color: #fff;
}
